package com.elsa.smart_buffet.service.impl;

import com.elsa.smart_buffet.mapper.CalorieTableMapper;
import com.elsa.smart_buffet.pojo.ResultBox.CallBackMessage;
import com.elsa.smart_buffet.pojo.ResultBox.ResponseResult;
import com.elsa.smart_buffet.service.CalorieService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName : CalorieServiceImpl  //类名
 * @Author : elsa //作者
 */
@Service
@Slf4j
@Transactional
public class CalorieServiceImpl implements CalorieService {

    @Autowired
    private CalorieTableMapper calorieTableMapper;

    @Override
    public ResponseResult getCalorieTableByTime(String data) {
        return new ResponseResult(CallBackMessage.SUCCESS, calorieTableMapper.getCalorieTableByTime(data));
    }
}
